<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
    </head>
    <body></body>
</html>
<script>
    const regx = /\d+/g;
    const str = "1-2/3&4_5___6789";
    const result = str.match(regx);
    console.log(result); // ['1', '2', '3', '4', '5', '6789']
</script>
